<?php
/**
 * Adapter.php
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */

/** base class */
require_once 'Madoqua/Form.php';

/**
 * Install_Database_Adapter
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */
class Install_Database_Adapter extends Madoqua_Form
{
    /**
     * constructor
     *
     * @param array $options
     */
    public function __construct($options)
    {
        parent::__construct($options);
        
        $adapters = array(
            'mysqli' => 'Mysql (mysqli)',
            'pdo_mysql' => 'Mysql (pdo)',
            'pdo_sqlite' => 'Sqlite (pdo)'
        );
        //FIXME make dynamic
        
        $this->addElement('select', 'adapter', array(
            'label' => 'Adapter',
            'multiOptions' => $adapters
        ));
        
        $this->addElement('submit', 's', array(
            'label' => 'Continue'
        ));
    }
}